package me.zxk.qwert_poetry.service;

import me.zxk.qwert_poetry.dao.Tag;
import org.springframework.data.domain.Page;

import java.util.List;

public interface TagService {

    Page<Tag> listTags(int page, int size);

    Tag getTagById(int id);

    Tag getTagByName(String name);

    Tag addTag(Tag tag);

    Tag editTag(Tag tag);

    void deleteTag(int id);

}
